/*
File:		DestroyEntityMessage.cpp
Author:		Ben Feldmann
Purpose:	Message to destroy game entities
*/

#include "DestroyEntityMessage.h"
#include "Entity.h"


DestroyEntityMessage::DestroyEntityMessage(Entity* destroyEntity) : Message(MSG_DESTROY_ENTITY), entity(destroyEntity)
{
	if( destroyEntity )
		destroyEntity->AddRef();
}

DestroyEntityMessage::~DestroyEntityMessage() 
{
	if( entity )
		entity->Release();
	entity = nullptr;
}
